package com.jarveis.dbs.core;

import java.util.Hashtable;

import org.apache.log4j.Logger;

import com.jarveis.dbs.core.filter.Filter;

/**
 * @desc 常量工厂类
 * @author liuguojun
 * @create 2017-07-18
 */
public class ConstantFactory {

	private static Hashtable<String, String> constantStore = new Hashtable<String, String>();

	/**
	 * 添加常量
	 * 
	 * @param name
	 *            常量名称
	 * @param value
	 *            常量值
	 */
	public static void put(String name, String value) {
		constantStore.put(name, value);
	}

	/**
	 * 获取常量值
	 * 
	 * @param name
	 *            常量名称
	 * @return
	 */
	public static String get(String name) {

		return constantStore.get(name);
	}
}
